home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / m17n / TIBT-OTF.flt < prev    next >
Text File  |  2009-04-29  |  3KB  |  119 lines

  1. ;; TIBT-OTF.flt -- Font Layout Table for Tibetan (OpenType font)
  2. ;; Copyright (C) 2005, 2007  AIST (H15PRO112)
  3. ;; See the end for copying conditions.
  4.  
  5. (font layouter tibt-otf nil
  6.       (font (nil nil unicode-bmp :otf=tibt=ccmp,blws,abvs)))
  7.  
  8. ;;; <li> TIBT-OTF.flt
  9. ;;;
  10. ;;; For TibetanMachineUniAlpha.ttf to draw Tibetan script.
  11. ;;; The font is available at:
  12. ;;; <ul>
  13. ;;; <li> infopage: http://www.thdl.org/
  14. ;;; <li> download: http://ftp.debian.org/debian/pool/main/t/ttf-tmuni/ttf-tmuni_0.0.20040806.orig.tar.gz
  15. ;;; </ul>
  16.  
  17. ;; Step 0: Reordering Characters
  18. ;;
  19. ;; According to the Unicode canonical combining class value (CCCV),
  20. ;; Tibetan combining characters must be orderd in the following way:
  21. ;;
  22. ;; MARK HALANTA (CCCV=9)
  23. ;; VOWEL SIGN AA (129)
  24. ;; Above base vowel signs (130)
  25. ;; VOWEL SIGN U (132)
  26. ;; MARK TSA -PHRU (216)
  27. ;;
  28. ;; However, the current font expects the following order:
  29. ;;
  30. ;; MARK TSA -PHRU
  31. ;; VOWEL SIGN AA
  32. ;; VOWEL SIGN U
  33. ;; MARK HALANTA
  34. ;; Above base vowel signs
  35.  
  36. (category
  37.  (0x0F00 0x0FCF        ?x)        ; default
  38.  (0x0F39        ?T)        ; MARK TSA -PHRU
  39.  (0x0F71        ?A)        ; VOWEL SIGN AA
  40.  (0x0F72        ?V)        ; VOWEL SIGN I
  41.  (0x0F74        ?U)        ; VOWEL SIGN U
  42.  (0x0F7A 0x0F7D        ?V)        ; VOWEL SIGN E .. VOWEL SIGN OO
  43.  (0x0F80        ?V)        ; VOWEL SIGN REVERSED I
  44.  (0x0F84        ?H))        ; MARK HALANTA
  45.  
  46. (generator
  47.  (0
  48.   (cond
  49.    ("x+"
  50.     = *)
  51.    ("(H?)(A*)(V?)(U*)(T?)"
  52.     (5 =) (2 = *) (4 = *) (1 =) (3 =)))
  53.   *))
  54.  
  55. ;; Step 1: Syllable identification
  56.  
  57. ;; C: Consonants
  58. ;; T: MARK TSA -PHRU
  59. ;; c: Subjoind consonants
  60. ;; A: VOWEL SIGN AA
  61. ;; U: VOWEL SIGN U
  62. ;; H: MARK HALANTA
  63. ;; V: Above or two-part vowel signs
  64. ;; S: Above base signs
  65. ;; s: Other above base signs
  66. ;; x: Others
  67.  
  68. (category
  69.  (0x0F00 0x0FCF        ?x)        ; default
  70.  (0x0F39        ?T)        ; MARK TSA -PHRU
  71.  (0x0F40 0x0F6A        ?C)        ; LETTER KA .. LETTER FIXED-FORM RA
  72.  (0x0F71        ?A)        ; VOWEL SIGN AA
  73.  (0x0F72 0x0F7E        ?V)        ; VOWEL SIGN I .. SIGN RJES SU NGA RO
  74.  (0x0F74        ?U)        ; VOWEL SIGN U
  75.  (0x0F80 0x0F81        ?V)        ; VOWEL SIGN REVERSED I, REVERSED II
  76.  (0x0F82 0x0F83        ?S)        ; SIGN NYI ZLA NAADA, SIGN SNA LDAN
  77.  (0x0F84        ?H)        ; MARK HALANTA
  78.  (0x0F86 0x0F87        ?s)        ; SIGN LCI RTAGS, SIGN YANG RTAGS
  79.  (0x0F88 0x0F89        ?C)        ; SIGN LCE TSA CAN, SIGN MCHU CAN
  80.  (0x0F90 0x0FBC        ?c))        ; SUBJOIND LETTER KA .. FIXED-FORM RA
  81.  
  82. (generator
  83.  (0
  84.   (cond
  85.    ;; For some reason, it is better not to apply the abvs feature when
  86.    ;; both A and U exist.
  87.    ("(C)(T?)(c*)(A*)(U*)(H?)(V*)(S*)(s*)"
  88.     < otf:tibt=ccmp,blws,abvs >)
  89.    ("."
  90.     =))
  91.   *))
  92.  
  93. ;; Copyright (C) 2005, 2007
  94. ;;   National Institute of Advanced Industrial Science and Technology (AIST)
  95. ;;   Registration Number H15PRO112
  96.  
  97. ;; This file is part of the m17n database; a sub-part of the m17n
  98. ;; library.
  99.  
  100. ;; The m17n library is free software; you can redistribute it and/or
  101. ;; modify it under the terms of the GNU Lesser General Public License
  102. ;; as published by the Free Software Foundation; either version 2.1 of
  103. ;; the License, or (at your option) any later version.
  104.  
  105. ;; The m17n library is distributed in the hope that it will be useful,
  106. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  107. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  108. ;; Lesser General Public License for more details.
  109.  
  110. ;; You should have received a copy of the GNU Lesser General Public
  111. ;; License along with the m17n library; if not, write to the Free
  112. ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  113. ;; Boston, MA 02110-1301, USA.
  114.  
  115. ;; Local Variables:
  116. ;; mode: lisp
  117. ;; coding: utf-8
  118. ;; End:
  119.